package org.jeecg.modules.jxc.inventorymanagement.commodityloss.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @Description: jxc_damage_list
 * @Author: jeecg-boot
 * @Date: 2021-12-21
 * @Version: V1.0
 */
@Data
@TableName("jxc_damage_list")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "jxc_damage_list对象", description = "jxc_damage_list")
public class JxcDamageList implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 商品报损单id，主键
     */
    @TableId(type = IdType.AUTO)
    @ApiModelProperty(value = "商品报损单id，主键")
    private Integer id;
    /**
     * 商品报损单号
     */
    @Excel(name = "商品报损单号", width = 15)
    @ApiModelProperty(value = "商品报损单号")
    private String damageNumber;
    /**
     * 创建日期
     */
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @Excel(name = "创建日期", width = 15)
    @ApiModelProperty(value = "创建日期")
    private String damageDate;
    /**
     * 备注
     */
    @Excel(name = "备注", width = 15)
    @ApiModelProperty(value = "备注")
    private String remarks;
    /**
     * 用户id，外键
     */
    @Excel(name = "用户id，外键", width = 15)
    @ApiModelProperty(value = "用户id，外键")
    private Integer userId;
    /**
     * 创建人
     */
    @ApiModelProperty(value = "创建人")
    private String createBy;
    /**
     * 创建时间
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "创建时间")
    private Date createTime;
    /**
     * 修改人
     */
    @ApiModelProperty(value = "修改人")
    private String updateBy;
    /**
     * 修改时间
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "修改时间")
    private Date updateTime;
    /**
     * 0表示未删除,1表示删除
     */
    @Excel(name = "0表示未删除,1表示删除", width = 15)
    @ApiModelProperty(value = "0表示未删除,1表示删除")
    private Integer delFlag;

    @Override
    public String toString() {
        return "JxcDamageList{" +
                "id=" + id +
                ", damageNumber='" + damageNumber + '\'' +
                ", damageDate='" + damageDate + '\'' +
                ", remarks='" + remarks + '\'' +
                ", userId=" + userId +
                ", createBy='" + createBy + '\'' +
                ", createTime=" + createTime +
                ", updateBy='" + updateBy + '\'' +
                ", updateTime=" + updateTime +
                ", delFlag=" + delFlag +
                '}';
    }
}
